Python Library
The API can be used directly with HTTP requests. But for those who prefer to interact with the API through code, we developed an official library for Python.
Installation
The latest version of the library can be installed directly from PyPI. It is recommended to create a virtual environment before installing it.
python3 -m venv venv
source venv/bin/activate
pip install sp-client
The library should work without issues without a virtual environment, but it is always good practice to create one to isolate the project, thus avoiding conflicts with the system's global Python environment.
The command that creates the environment is python3 -m venv venv, where the last venv is the name of the virtual environment which can be defined by the user.
After creating an environment with the above command, you can activate it with source venv/bin/activate (where venv is the name defined for the environment) and deactivate it with deactivate.